package com.xuan.webfinally.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 气象监测数据表
 * </p>
 *
 * @author gyuxuan
 * @since 2025-05-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("slope_weather_data")
@ApiModel(value="SlopeWeatherData对象", description="气象监测数据表")
public class SlopeWeatherData implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "逻辑主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "设备SN")
    @TableField("device_sn")
    private String deviceSn;

    @ApiModelProperty(value = "累计降雨量(mm)")
    @TableField("cumulative_rainfall")
    private Double cumulativeRainfall;

    @ApiModelProperty(value = "日降雨量(mm)")
    @TableField("daily_rainfall")
    private Double dailyRainfall;

    @ApiModelProperty(value = "小时降雨量(mm)")
    @TableField("hourly_rainfall")
    private Double hourlyRainfall;

    @ApiModelProperty(value = "分钟降雨量(mm)")
    @TableField("min_rainfall")
    private Double minRainfall;

    @ApiModelProperty(value = "气温(°C)")
    @TableField("temperature")
    private Double temperature;

    @ApiModelProperty(value = "气压(Kpa)")
    @TableField("pressure")
    private Double pressure;

    @ApiModelProperty(value = "风速(m/s)")
    @TableField("wind_speed")
    private Double windSpeed;

    @ApiModelProperty(value = "风向(°)")
    @TableField("wind_direction")
    private Double windDirection;

    @ApiModelProperty(value = "空气湿度(%RH)")
    @TableField("humidity")
    private Double humidity;

    @ApiModelProperty(value = "太阳光总辐射(w/m²)")
    @TableField("solar_radiation")
    private Double solarRadiation;

    @ApiModelProperty(value = "部门ID")
    @TableField("dept_id")
    private Long deptId;

    @ApiModelProperty(value = "采集时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;


}
